home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / standard / keepaspect.z / keepaspect
Encoding:
Text File  |  2002-10-03  |  2.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4. kkkkeeeeeeeeppppaaaassssppppeeeecccctttt((((3333GGGG))))                                                  kkkkeeeeeeeeppppaaaassssppppeeeecccctttt((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      kkkkeeeeeeeeppppaaaassssppppeeeecccctttt - specifies the aspect ratio of a graphics window
  10.  
  11. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      vvvvooooiiiidddd kkkkeeeeeeeeppppaaaassssppppeeeecccctttt((((xxxx,,,, yyyy))))
  13.      lllloooonnnngggg xxxx,,,, yyyy;;;;
  14.  
  15. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  16.      _x   expects the horizontal proportion of the aspect ratio. The value must
  17.          be between 1 and 32767 (0x7fff), inclusive.
  18.  
  19.      _y   expects the vertical proportion of the aspect ratio. The value must
  20.          be between 1 and 32767 (0x7fff), inclusive.
  21.  
  22. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  23.      kkkkeeeeeeeeppppaaaassssppppeeeecccctttt specifies the aspect ratio of a graphics window.  Call it at
  24.      the beginning of a graphics program. It takes effect when you call
  25.      wwwwiiiinnnnooooppppeeeennnn.  The resulting graphics window maintains the aspect ratio
  26.      specified in kkkkeeeeeeeeppppaaaassssppppeeeecccctttt, even if it changes size.
  27.  
  28.      For example, kkkkeeeeeeeeppppaaaassssppppeeeecccctttt((((1111,,,, 1111)))) always results in a square graphics window.
  29.      You can also call kkkkeeeeeeeeppppaaaassssppppeeeecccctttt in conjunction with wwwwiiiinnnnccccoooonnnnssssttttrrrraaaaiiiinnnnttttssss to modify
  30.      the enforced aspect ratio after the window has been created.
  31.  
  32. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  33.      fudge, winconstraints, winopen
  34.  
  35. NNNNOOOOTTTTEEEE
  36.      This routine is available only in immediate mode.
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.